package com.atguigu.zuoye2;


/**
 * @Description: 第六题
 * @Author: Hank
 * @Date: 2025/2/11 17:36
 */

public class Circle extends Shape {
    private Long radius;

    public Circle(Long radius) {
        this.radius = radius;
    }

    public Long getRadius() {
        return radius;
    }

    public void setRadius(Long radius) {
        this.radius = radius;
    }

    @Override
    public double getArea() {
        return radius * radius * Math.PI;
    }
}

